# import MySQLdb

# db = MySQLdb.connect("localhost","testuser","test123","TESTDB",charset='utf8')
# cursor = db.cursor()
# cursor.execute("SELECT VERSION()")
# data = cursor.fetchone()
# db.close()

# sql = "select * from employee"
# try:
#    cursor.execute(sql)
#    results = cursor.fetchall()
#    for row in results:
#        fname = row[0]
#        lname = row[1]
#        age = row[2]
#        sex = row[3]
#        income = row[4]
# except:
#    print "Error: unable to fetch data"
# db.close()